#!/bin/bash
set -e

while getopts  ":h" opts
do
        case  $opts  in
		h)
		echo `basename $0` 'cmd'
		exit 1
		;;
		\?)
		echo `basename $0` ': invalid option.'
		exit 1
		;;
		esac
done
shift $(($OPTIND - 1))

if [ -z "$1" ]; then
	echo `basename $0` 'cmd'
	exit 1
fi

# -----------------------------------------------
# -----------------------------------------------
. /mnt/ilustre/app/medical/tools/.var #----------
# -----------------------------------------------

# export HISTFILE=. 
# wget $1 
$@

. $cmd_done